<script>
    $(".showUnfold").live("click", function() {
        var id = $(this).attr("id");
        var i_style = $("#" + id + " h3 i").attr("class");
        if (i_style === "") {
            $("#" + id + " h3 i").attr("class", "tabclose");
            $(this).next(".showUl").attr("style", "display:none;");
        } else {
            $("#" + id + " h3 i").attr("class", "");
            $(this).next(".showUl").attr("style", "display:block;");
        }
    });
    $(function() {
        $(".leftnav .showUnfold h3 i").addClass("tabclose");
        $(".leftnav .showUl").hide();
        $(".lnavon").parent("ul").show();
        $(".lnavon").parent("ul").parent(".leftnav").find("i").removeClass("tabclose");
    });
</script>
<table style="font-size:14px;text-align: center;width: 100%">
    <?php if ($this->type == 'waybill') { ?>    
        <div class="mavh1">
            <h2>运单管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold " id="outstore">
                <h3><i class=""></i>运单出库状态</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Processing; ?>" >待受理
                        <?php if ($this->countbillout1 != 0) { ?><em>(<?php echo $this->countbillout1; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Confrimed; ?>" >待选择渠道
                        <?php if ($this->countbillout2 != 0) { ?><em>(<?php echo $this->countbillout2; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Incoice; ?>" >待拣货
                        <?php if ($this->countbillout3 != 0) { ?><em>(<?php echo $this->countbillout3; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 7 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/tabletforpicking/status/1" >平板待拣货
                        <?php if ($this->countbillout3 != 0) { ?><em>(<?php echo $this->countbillout3; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 8 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/tabletforpicking/status/2" >平板拣货异常
                        <?php if ($this->countbillout20 != 0) { ?><em>(<?php echo $this->countbillout20; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Picking; ?>">待打包
                        <?php if ($this->countbillout4 != 0) { ?><em>(<?php echo $this->countbillout4; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_InStore; ?>/isWay/1">上门取件待打包  
                        <?php if ($this->countVisiting != 0) { ?><em>(<?php echo $this->countVisiting; ?>)</em><?php } ?>
                    </a></li>    
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Pick; ?>" >待确认渠道
                        <?php if ($this->countbillout5 != 0) { ?><em>(<?php echo $this->countbillout5; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_AffirmChannel; ?>">待交运
                        <?php if ($this->countbillout6 != 0) { ?><em>(<?php echo $this->countbillout6; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="transport">
                <h3 ><i class=""></i>运输状态</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Outstorage; ?>">已交运
                        <?php if ($this->countbillout10 != 0) { ?><em>(<?php echo $this->countbillout10; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_System; ?>">已入系统
                        <?php if ($this->countbillout11 != 0) { ?><em>(<?php echo $this->countbillout11; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Singleno; ?>">已出转单
                        <?php if ($this->countbillout12 != 0) { ?><em>(<?php echo $this->countbillout12; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Transportation; ?>">已上网
                        <?php if ($this->countbillout13 != 0) { ?><em>(<?php echo $this->countbillout13; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 100 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Achieve; ?>">已签收
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="billproblem">
                <h3><i class=""></i>问题与预警</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 20 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_PickError; ?>">拣货异常
                        <?php if ($this->countbillout20 != 0) { ?><em>(<?php echo $this->countbillout20; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 21 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_OverSystem; ?>">入系统超时
                        <?php if ($this->countbillout21 != 0) { ?><em>(<?php echo $this->countbillout21; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 22 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Oversingleno; ?>">转单超时
                        <?php if ($this->countbillout22 != 0) { ?><em>(<?php echo $this->countbillout22; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 23 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_OutTransportation; ?>">上网超时
                        <?php if ($this->countbillout23 != 0) { ?><em>(<?php echo $this->countbillout23; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 24 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Overachieve; ?>">签收预警
                        <?php if ($this->countbillout24 != 0) { ?><em>(<?php echo $this->countbillout24; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 25 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/problem/1">问题运单
                        <?php if ($this->countbillout != 0) { ?><em>(<?php echo $this->countbillout; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="billselect">
                <h3><i class=""></i>运单查询管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 26 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managewaybill/index/day/1">今日运单
                        <?php if ($this->countbillout31 != 0) { ?><em>(<?php echo $this->countbillout31; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 99 ? 'class="lnavon"' : ""; ?>><a href="/admini/managewaybill/index/">所有运单</a></li>
                <li <?php echo $this->stype == 88 ? 'class="lnavon"' : ""; ?>><a href="/admini/managewaybill/index/isinvoice/1">未制作发票</a></li>
                <li <?php echo $this->stype == 0 ? 'class="lnavon"' : ""; ?>><a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_WaitPay; ?>">待付款</a></li>
                <li <?php echo $this->stype == -1 ? 'class="lnavon"' : ""; ?>><a href="/admini/managewaybill/index/stus/<?php echo Application_Model_wayBillItem::Interior_Cancel; ?>">已取消</a></li>
            </ul>
        </div> 
    <?php } ?>


        <?php if ($this->type == 'rstore') { ?>
        <div class="mavh1">                    
            <h2>预报入库管理</h2><i></i>
        </div>
        
        <div class="leftnav">
            <div class="tableft showUnfold" id="preDiction">
                <h3><i class=""></i>预报入库管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/">所有预报</a>
                </li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/day/1/dateinbegin/<?php echo date('Y-m-d'); ?>">今日预报</a>                           
                    <em>(<?php echo $this->countstore3 ? $this->countstore3 : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="#">入库预警</a>
                </li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/status/problem">问题预报</a>
                    <em>(<?php echo $this->countstore4 ? $this->countstore4 : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/status/appear">预报退换货</a>
                    <em>(<?php echo $this->countstore4 ? $this->countstore5 : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 14 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/status/user">异常历史列表</a>
                    <em>(<?php echo $this->countstore6 ? $this->countstore6 : 0; ?>)</em>
                </li>
            </ul>
        </div>  
    <?php } ?>  

    <?php if ($this->type == 'billProblem') { ?>
        <div class="mavh1">
            <h2>问题运单</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="problembill">
                <h3><i class=""></i>问题运单管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_StayUser; ?>" >待客户回复
                        <?php if ($this->countbillout1 != 0) { ?><em>(<?php echo $this->countbillout1; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_StayUuch; ?>" >客户已回复
                        <?php if ($this->countbillout2 != 0) { ?><em>(<?php echo $this->countbillout2; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 100 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_Allclear; ?>" >已放行</a></li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_ReturnCancel; ?>">新退件
                        <?php if ($this->countbillout12 != 0) { ?><em>(<?php echo $this->countbillout12; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_PartReturn; ?>" >退部分物品
                        <?php if ($this->countbillout11 != 0) { ?><em>(<?php echo $this->countbillout11; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 99 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_Cancel; ?>">已取消</a></li>
                <li <?php echo $this->stype == 0 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/">历史问题件</a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="returnbill">
                <h3 ><i class=""></i>退件状态</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 121 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_ReturnCancel; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_ApplyFor; ?>">已申请
                        <?php if ($this->countbillout121 != 0) { ?><em>(<?php echo $this->countbillout121; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 122 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_ReturnCancel; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_ReturnRoute; ?>">退件途中
                        <?php if ($this->countbillout122 != 0) { ?><em>(<?php echo $this->countbillout122; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 123 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_ReturnCancel; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_InChannel; ?>">已在渠道商
                        <?php if ($this->countbillout123 != 0) { ?><em>(<?php echo $this->countbillout123; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 124 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_ReturnCancel; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_InUuch; ?>">已退回悠奇
                        <?php if ($this->countbillout124 != 0) { ?><em>(<?php echo $this->countbillout124; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 125 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_ReturnCancel; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_InStore; ?>">已入库
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="partReturn">
                <h3 ><i class=""></i>部分物品退件</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 111 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_PartReturn; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_ApplyFor; ?>">已申请
                        <?php if ($this->countbillout111 != 0) { ?><em>(<?php echo $this->countbillout111; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 112 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_PartReturn; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_ReturnRoute; ?>">退件途中
                        <?php if ($this->countbillout112 != 0) { ?><em>(<?php echo $this->countbillout112; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 114 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_PartReturn; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_InUuch; ?>">已退回悠奇
                        <?php if ($this->countbillout114 != 0) { ?><em>(<?php echo $this->countbillout114; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 100 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/stus/<?php echo Application_Model_ProblemWay::Problem_PartReturn; ?>/schedule/<?php echo Application_Model_ProblemWay::Schedule_InStore; ?>">已入库
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="partReturn">
                <h3 ><i class=""></i>运单留言系统</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 21 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/isMessage/<?php echo Application_Model_ProblemWay::IsMessage_User; ?>">待用户留言
                        <?php if ($this->countbillout111 != 0) { ?><em>(<?php echo $this->countbillout111; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 22 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageproblem/problem/isMessage/<?php echo Application_Model_ProblemWay::IsMessage_Uuch; ?>">待留言回复
                        <?php if ($this->countbillout112 != 0) { ?><em>(<?php echo $this->countbillout112; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
    <?php } ?>

    <?php if ($this->type == 'visiting') { ?>
        <div class="mavh1">
            <h2>上门取件</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="visitingList">
                <h3><i class=""></i>存入云仓库</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Processing; ?>" >待受理
                        <?php if ($this->countbillout1 != 0) { ?><em>(<?php echo $this->countbillout1; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Confrimed; ?>" >待通知顺丰
                        <?php if ($this->countbillout2 != 0) { ?><em>(<?php echo $this->countbillout2; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_InformDelivery; ?>" >待取件
                        <?php if ($this->countbillout3 != 0) { ?><em>(<?php echo $this->countbillout3; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Delivery; ?>" >待入库
                        <?php if ($this->countbillout10 != 0) { ?><em>(<?php echo $this->countbillout10; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_InStore; ?>/isWay/0">已入库
                        <?php if ($this->countbillout11 != 0) { ?><em>(<?php echo $this->countbillout11; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 17 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Payfreight; ?>">结算补交
                        <?php if ($this->countbillout17 != 0) { ?><em>(<?php echo $this->countbillout17; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 16 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Complete; ?>">已结算
                    </a></li>     
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="visitingWay">
                <h3 ><i class=""></i>直发海外</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 106 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_InStore; ?>/isWay/1">已入库(待打包)
                        <?php if ($this->countbillout12 != 0) { ?><em>(<?php echo $this->countbillout12; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Pack; ?>">已打包
                        <?php if ($this->countbillout13 != 0) { ?><em>(<?php echo $this->countbillout13; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 14 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Inspections; ?>">已审单
                        <?php if ($this->countbillout14 != 0) { ?><em>(<?php echo $this->countbillout14; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 18 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Payingmoney; ?>">补交款
                        <?php if ($this->countbillout18 != 0) { ?><em>(<?php echo $this->countbillout18; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 15 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_ArrearsFee; ?>">已补交
                        <?php if ($this->countbillout15 != 0) { ?><em>(<?php echo $this->countbillout15; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 30 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Launch; ?>">已启用
                        <?php if ($this->countbillout30 != 0) { ?><em>(<?php echo $this->countbillout30; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="vsProblem">
                <h3 ><i class=""></i>问题取件</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 24 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/problem/<?php echo Application_Model_VisitingServer::Problem_AppearProblem; ?>">取件异常
                        <?php if ($this->countbillout24 != 0) { ?><em>(<?php echo $this->countbillout24; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 22 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/stus/<?php echo Application_Model_VisitingServer::Interior_Lose; ?>">快递遗失
                        <?php if ($this->countbillout22 != 0) { ?><em>(<?php echo $this->countbillout22; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 25 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/problem/<?php echo Application_Model_VisitingServer::Problem_AppearProblem; ?>/pstatus/1">问题待回复
                    <?php if ($this->countbillout25 != 0) { ?><em>(<?php echo $this->countbillout25; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 26 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/problem/<?php echo Application_Model_VisitingServer::Problem_AppearProblem; ?>/pstatus/2">问题已回复
                    <?php if ($this->countbillout26 != 0) { ?><em>(<?php echo $this->countbillout26; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="visitingAll">
                <h3><i class=""></i>取件查询管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 99 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/day/1">今日取件
                        <?php if ($this->countbillout99 != 0) { ?><em>(<?php echo $this->countbillout99; ?>)</em><?php } ?>
                    </a></li>                    
                <li <?php echo $this->stype == 100 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/">历史记录
                    </a></li>
                <li <?php echo $this->stype == 88 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/index/isdel/1">回收站
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="paymentLink">
                <h3><i class=""></i>付款链接管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 102 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/payment/status/1">已付款
                    </a></li>
                <li <?php echo $this->stype == 103 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/payment/status/0">未付款
                    </a></li>    
                <li <?php echo $this->stype == 104 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/visiting/payment/">全部
                    </a></li>
            </ul>
        </div>


    <?php } ?>

    <?php if ($this->type == 'store') { ?>
        <div class="mavh1">                    
            <h2>仓库管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="instore">
                <h3><i class=""></i>入库操作</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/instore">提交物品信息</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/storage">扫描物品入库</a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/notscan/notscan">未扫描物品<em>(<?php echo $this->countnotscan ? $this->countnotscan : "0"; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 100 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/notscan/beyondnotscan">超期未扫描<em>(<?php echo $this->countbeyondnotscan ? $this->countbeyondnotscan : "0"; ?>)</em></a>
                </li>
            </ul>
        </div>    
        <div class="leftnav">
            <div class="tableft showUnfold" id="storeSearch">
                <h3><i class=""></i>仓库物品查询</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/history/2">现有库存</a>
                    <em>(<?php echo $this->countinstore ? $this->countinstore : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/historylist">历史库存</a>
                </li>                        
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/day/1/stus/1">入库记录
                        <em>(<?php echo $this->countstore1 ? $this->countstore1 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 7 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/day/1/stus/2">出库记录
                        <em>(<?php echo $this->countstore2 ? $this->countstore2 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 8 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/deletelist">丢弃和过期</a>
                </li>
                <li <?php echo $this->stype == 17 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/special/special">特殊包裹</a>
                    <em>(<?php echo $this->countSpecialPackage; ?>)</em>
                </li>
                <li <?php echo $this->stype == 77 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/index/problem/1">问题包裹</a>
                    <em>(<?php echo $this->countProblem; ?>)</em>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="preDiction">
                <h3><i class=""></i>预报入库管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/">所有预报</a>
                </li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/day/1/dateinbegin/<?php echo date('Y-m-d'); ?>">今日预报</a>                           
                    <em>(<?php echo $this->countstore3 ? $this->countstore3 : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="#">入库预警</a>
                </li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/status/problem">问题预报</a>
                    <em>(<?php echo $this->countstore4 ? $this->countstore4 : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/status/appear">预报退换货</a>
                    <em>(<?php echo $this->countstore4 ? $this->countstore5 : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 14 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/ingstore/status/user">异常历史列表</a>
                    <em>(<?php echo $this->countstore6 ? $this->countstore6 : 0; ?>)</em>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="locationManagement">
                <h3><i class=""></i>库位管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/storelocation">库位图</a>
                </li>
                <li <?php echo $this->stype == 14 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/relocation">库位解除</a>
                </li>
                <li <?php echo $this->stype == 15 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/printstoreno">打印仓库号</a>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="topaypackage">
                <h3><i class=""></i>到付包裹管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 18 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managestore/topaypackage">到付包裹查询</a>
                </li>
            </ul>
        </div>       
    <?php } ?>            

    <?php if ($this->type == 'user') { ?>
        <div class="mavh1">                    
            <h2>会员管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="member">
                <h3><i class=""></i>会员信息管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/index">用户查询</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/account">账目明细</a>
                </li>
                <li <?php echo $this->stype == 22 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/account/status/<?php echo Application_Model_UserAccountHistory::STATE_SCORE; ?>">成长值明细</a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/address">会员地址薄</a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/mail">系统站内信</a>
                </li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/email">邮件明细</a>
                </li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/coupon">优惠券系统</a>
                </li>
                <li <?php echo $this->stype == 7 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/paybill">用户支付记录</a>
                </li>
                <li <?php echo $this->stype == 8 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/customerlist">客户排名</a>
                </li>
                <li <?php echo $this->stype == 15 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/paylog">Paypal日志</a>
                </li>
                <li <?php echo $this->stype == 16 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/risk">Paypal风控</a>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="complaints">
                <h3><i class=""></i>投诉管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/complaints/status/0">未处理投诉</a>
                    <em>(<?php echo $this->complaintCount ? $this->complaintCount : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 101 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/complaints/status/1">已处理投诉</a>
                </li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/complaints/isDelete/1">投诉回收站</a>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="remittance">
                <h3><i class=""></i>线下汇款</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/transfer">未处理</a>
                    <em>(<?php echo $this->transferCount ? $this->transferCount : 0; ?>)</em>
                </li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/transfer/status/1">已处理</a>
                </li>
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageuser/transfer/isDelete/1">回收站</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    <?php if ($this->type == 'pay') { ?>
        <tr style="height: 36px;"><th>代充值管理</th></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/charge/day/1" ><div style="float:left;" <?php echo $this->stype == 1 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;今日代充值
                        <div id="mg" <?php echo $this->countcharge == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countcharge; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/charge/status/<?php echo Application_Model_topUpAlipay::STATUS_Processing; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 3 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;待处理
                        <div id="mg" <?php echo $this->countcharge2 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countcharge2; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/charge/status/<?php echo Application_Model_topUpAlipay::STATUS_Sended; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 4 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;已处理
                        <div id="mg" <?php echo $this->countcharge3 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countcharge3; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/charge/status/<?php echo Application_Model_topUpAlipay::STATUS_WaitPay; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 2 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;未付款
                        <div id="mg" <?php echo $this->countcharge1 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countcharge1; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/charge/status/<?php echo Application_Model_topUpAlipay::STATUS_Refund; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 5 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;已退款
                        <div id="mg" <?php echo $this->countcharge4 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countcharge4; ?></div></div>
                </a></td></tr>
    <?php } ?>
    <?php if ($this->type == 'agentpay') { ?>
        <tr style="height: 36px;"><th>代支付管理</th></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/agentpay" ><div style="float:left;" <?php echo $this->stype == 1 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;所有代支付
                    </div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/agentpay/status/<?php echo Application_Model_AgentPay::STATUS_acpay; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 3 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;待处理
                        <div id="mg" <?php echo $this->countagentpay2 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countagentpay2; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/agentpay/status/<?php echo Application_Model_AgentPay::STATUS_prpay; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 4 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;已处理
                        <div id="mg" <?php echo $this->countagentpay3 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countagentpay3; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/agentpay/status/<?php echo Application_Model_AgentPay::STATUS_nopay; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 2 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;未付款
                        <div id="mg" <?php echo $this->countagentpay1 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countagentpay1; ?></div></div>
                </a></td></tr>
        <tr style="height: 36px;"><td><a href="/admini/managepay/agentpay/status/<?php echo Application_Model_AgentPay::STATUS_Refund; ?>" >
                    <div style="float:left;" <?php echo $this->stype == 5 ? 'id="sname"' : 'id="tname"'; ?>>
                        &nbsp;<img src="/admins/images/layout_l.jpg" width="10px" height="10px" style="vertical-align:middle;margin-bottom: 2px;"/>&nbsp;&nbsp;已退款
                        <div id="mg" <?php echo $this->countagentpay4 == 0 ? "class='cg'" : "class='bg'"; ?>><?php echo $this->countagentpay4; ?></div></div>
                </a></td></tr>
    <?php } ?>

    <?php if ($this->type == 'buyshop') { ?>
        <div class="mavh1">
            <h2>代购订单管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="allorder">
                <h3 ><i class="tabclose"></i>所有代购订单</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_PAID; ?>">待受理
                        <?php if ($this->countorder1 != 0) { ?><em>(<?php echo $this->countorder1; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_CONFRIM; ?>">所有已受理
                        <?php if ($this->countorder2 != 0) { ?><em>(<?php echo $this->countorder2; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_UNSEND; ?>">等待卖家发货
                        <?php if ($this->countorder3 != 0) { ?><em>(<?php echo $this->countorder3; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_SUBSCRIBE; ?>">订单预订
                        <?php if ($this->countorder6 != 0) { ?><em>(<?php echo $this->countorder6; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_SELLER_SENDED; ?>">卖家已发货
                        <?php if ($this->countorder4 != 0) { ?><em>(<?php echo $this->countorder4; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_INSTORE; ?>">已入库
                    </a></li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_CANCEL; ?>">已取消
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="orderOutTime">
                <h3><i class="tabclose"></i>超期订单</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 31 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_OUTTIME_UNSEND; ?>/seltime/paidTime">超期未发货
                        <?php if ($this->countorder31 != 0) { ?><em>(<?php echo $this->countorder31; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 41 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_OUTTIME_INSTORE; ?>/seltime/paidTime">超期收货
                        <?php if ($this->countorder41 != 0) { ?><em>(<?php echo $this->countorder41; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 51 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_OUTTIME_FIN; ?>/seltime/paidTime">超期财务风险
                        <?php if ($this->countorder51 != 0) { ?><em>(<?php echo $this->countorder51; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="orderReChange">
                <h3><i class="tabclose"></i>异常代购</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 810 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/quickType/rechangeStatus">异常列表
                        <?php if ($this->countorder810 != 0) { ?><em>(<?php echo $this->countorder810; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 811 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Dispose; ?>">待退换货
                        <?php if ($this->countorder811 != 0) { ?><em>(<?php echo $this->countorder811; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 812 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Emit; ?>">待悠奇发出
                        <?php if ($this->countorder812 != 0) { ?><em>(<?php echo $this->countorder812; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 813 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Seller; ?>">待卖家发出
                        <?php if ($this->countorder813 != 0) { ?><em>(<?php echo $this->countorder813; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 814 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Reissue; ?>">待入库
                        <?php if ($this->countorder814 != 0) { ?><em>(<?php echo $this->countorder814; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="orderProbelm">
                <h3><i class="tabclose"></i>问题代购</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 77 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/problem/1">待用户回复
                        <?php if ($this->countorder77 != 0) { ?><em>(<?php echo $this->countorder77; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 771 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/problem/2">用户已回复
                        <?php if ($this->countorder771 != 0) { ?><em>(<?php echo $this->countorder771; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="orderselect">
                <h3><i class="tabclose"></i>代购查询管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 100 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/day/1">今日代购
                        <?php if ($this->countorder != 0) { ?><em>(<?php echo $this->countorder; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 99 ? 'class="lnavon"' : ""; ?>><a href="/admini/purchase/index/">所有代购</a></li>
                <li <?php echo $this->stype == 0 ? 'class="lnavon"' : ""; ?>><a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_PAYING; ?>">待付款</a></li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>><a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_CANCEL; ?>">已取消</a></li>
                <li <?php echo $this->stype == 66 ? 'class="lnavon"' : ""; ?>><a href="/admini/purchase/index/isdelete/1">回收站</a></li>
            </ul>
        </div> 
        <div class="leftnav">
            <div class="tableft showUnfold" id="orderUser">
                <h3><i class="tabclose"></i>代购关联</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 97 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/agent">后台发起代购</a></li>
            </ul>
        </div>
    <?php } ?>
    <?php if ($this->type == 'mybuyshop') { ?>
        <div class="mavh1">
            <h2>代购订单管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft" id="allorder">
                <h3 ><i></i>我的代购订单</h3>
            </div>
            <ul>
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_PAID; ?>/ordertype/1">待受理
                        <?php if ($this->countorder1 != 0) { ?><em>(<?php echo $this->countorder1; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 21 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_CONFRIM; ?>/myorder/1/ordertype/1">我的已受理
                        <?php if ($this->countorder21 != 0) { ?><em>(<?php echo $this->countorder21; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_UNSEND; ?>/ordertype/1">等待卖家发货
                        <?php if ($this->countorder3 != 0) { ?><em>(<?php echo $this->countorder3; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_SUBSCRIBE; ?>/ordertype/1">订单预订
                        <?php if ($this->countorder6 != 0) { ?><em>(<?php echo $this->countorder6; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_SELLER_SENDED; ?>/ordertype/1">卖家已发货
                        <?php if ($this->countorder4 != 0) { ?><em>(<?php echo $this->countorder4; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_INSTORE; ?>/ordertype/1">已入库
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft" id="orderOutTime">
                <h3><i></i>我的超期代购</h3>
            </div>
            <ul>
                <li <?php echo $this->stype == 31 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_OUTTIME_UNSEND; ?>/ordertype/1/seltime/paidTime">超期未发货
                        <?php if ($this->countorder31 != 0) { ?><em>(<?php echo $this->countorder31; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 41 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_OUTTIME_INSTORE; ?>/ordertype/1/seltime/paidTime">超期收货
                        <?php if ($this->countorder41 != 0) { ?><em>(<?php echo $this->countorder41; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 51 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/stus/<?php echo Application_Model_Order::STATUS_OUTTIME_FIN; ?>/ordertype/1/seltime/paidTime">超期财务风险
                        <?php if ($this->countorder51 != 0) { ?><em>(<?php echo $this->countorder51; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft" id="orderReChange">
                <h3><i></i>我的异常代购</h3>
            </div>
            <ul>
                <li <?php echo $this->stype == 810 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/quickType/rechangeStatus/ordertype/1">异常列表
                        <?php if ($this->countorder810 != 0) { ?><em>(<?php echo $this->countorder810; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 811 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Dispose; ?>/ordertype/1">待退换货
                        <?php if ($this->countorder811 != 0) { ?><em>(<?php echo $this->countorder811; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 812 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Emit; ?>/ordertype/1">待悠奇发出
                        <?php if ($this->countorder812 != 0) { ?><em>(<?php echo $this->countorder812; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 813 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Seller; ?>/ordertype/1">待卖家发出
                        <?php if ($this->countorder813 != 0) { ?><em>(<?php echo $this->countorder813; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 814 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/rechangeStatus/<?php echo Application_Model_Order::ReChange_Reissue; ?>/ordertype/1">待入库
                        <?php if ($this->countorder814 != 0) { ?><em>(<?php echo $this->countorder814; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft" id="orderProbelm">
                <h3><i></i>我的问题代购</h3>
            </div>
            <ul>
                <li <?php echo $this->stype == 71 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/problem/1/ordertype/1">待用户回复
                        <?php if ($this->countorder71 != 0) { ?><em>(<?php echo $this->countorder71; ?>)</em><?php } ?>
                    </a></li>
                <li <?php echo $this->stype == 711 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/purchase/index/problem/2/ordertype/1">用户已回复
                        <?php if ($this->countorder711 != 0) { ?><em>(<?php echo $this->countorder711; ?>)</em><?php } ?>
                    </a></li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft" id="orderselect">
                <h3><i></i>代购查询管理</h3>
            </div>
            <ul>
                <li <?php echo $this->stype == 99 ? 'class="lnavon"' : ""; ?>><a href="/admini/purchase/index/ordertype/1">我的所有代购</a></li>
            </ul>
        </div> 
    <?php } ?>
    <?php if ($this->type == 'adminuser') { ?>   
        <div class="mavh1">                    
            <h2>个人管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="management">
                <h3><i class=""></i>个人设置</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/index/">个人信息展示</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/userdetail/id/<?php echo Uuch_Util::getUserId(); ?>">修改密码</a>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="todo">
                <h3><i class=""></i>个人任务</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/backlog/status/<?php echo Application_Model_Backlog::STATUS_default; ?>">我的待办</a>
                </li>
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/backlog/status/<?php echo Application_Model_Backlog::STATUS_dispose; ?>">我的处理中</a>
                </li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/backlog/status/<?php echo Application_Model_Backlog::STATUS_processed; ?>">我的已处理</a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/knowlog">我的知会</a>
                </li>   
                <li <?php echo $this->stype == 7 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/mylaunch">我的发起</a>
                </li> 
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/servicelog">客服记录</a>
                </li> 
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/taobaoapi/">更新淘宝Api</a>
                </li>
                <li <?php echo $this->stype == 8 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageadmin/analyze4px/">解析4PX</a>
                </li>
            </ul>

        </div>
    <?php } ?>

    <?php if ($this->type == 'general') { ?> 
        <div class="leftnav">
            <div class="tableft showUnfold" id="todo">
                <h3><i class=""></i>推广管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/generalize/index">活动管理</a>
                </li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/banner/index">轮播管理</a>
                </li>   
                <li <?php echo $this->stype == 7 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/banner/gonggao">首页公告</a>
                </li>   
                 <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/goods/hotindex">企业云仓库运费</a>
                </li>              
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="goods">
                <h3><i class=""></i>商品管理</h3>
            </div>
            <ul class="showUl">                
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/goods/menu">商品栏目</a>
                </li>
                 <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/goods/index">商品列表</a>
                </li>
                 <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/goods/ztindex">专题列表</a>
                </li>
               
            </ul>
        </div>
    <?php } ?>

    <?php if ($this->type == 'finance') { ?> 
        <div class="mavh1">                    
            <h2>系统设置</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="statistics">
                <h3><i class=""></i>财务数据</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 31 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managedata/mdata">代支付数据</a>
                </li>
                <li <?php echo $this->stype == 32 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managedata/userpaylog">用户支付记录</a>
                </li>
                <li <?php echo $this->stype == 33 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managedata/buyshopcount">后台手工操作</a>
                </li>
                <li <?php echo $this->stype == 34 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managedata/index">仓库入库数据</a>
                </li>
                <li <?php echo $this->stype == 35 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managedata/orderdata">代购数据</a>
                </li>
                <li <?php echo $this->stype == 36 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managedata/waybill">国际运单数据</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    <?php if ($this->type == 'system') { ?> 
        <div class="mavh1">                    
            <h2>系统设置</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="statistics">
                <h3><i class=""></i>数据统计</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 11 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageday/meetdata">全局统计</a>
                </li>
                <li <?php echo $this->stype == 8 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageday/billcount">运单统计</a>
                </li>
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageday/buyshopcount">代购统计</a>
                </li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managereport/index">增长率统计</a>
                </li>
                <li <?php echo $this->stype == 13 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managereport/buyshop">代购增长率统计</a>
                </li>                        
                <li <?php echo $this->stype == 15 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageday/insandouts/day/31">个人出入库统计</a>
                </li>
                <li <?php echo $this->stype == 16 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageday/insandouts/day/month">当月出入库统计</a>
                </li>
                <li <?php echo $this->stype == 21 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/managereport/topchannel">渠道商排行</a>
                </li>
            </ul>
        </div> 
        <div class="leftnav">
            <div class="tableft showUnfold" id="systemsettings">
                <h3><i class=""></i>系统设置</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 17 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/system/optionitem/">参数设置</a>
                </li>
                <li <?php echo $this->stype == 18 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/system/statuslist/">状态设置</a>
                </li>
                <li <?php echo $this->stype == 19 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/navigation/index/">导航设置</a>
                </li>
                <li <?php echo $this->stype == 20 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/manageday/operate">操作日志</a>
                </li>
                <li <?php echo $this->stype == 23 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/system/adlink">推广链接管理</a>
                </li>
                <li <?php echo $this->stype == 26 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/system/purchase">代购推广</a>
                </li>
            </ul>
        </div>     
        <div class="leftnav">
            <div class="tableft showUnfold" id="usersettings">
                <h3><i class=""></i>用户系统设置</h3>
            </div>
            <ul class="showUl">
                </li>
                <li <?php echo $this->stype == 21 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/task/index">用户任务</a>
                </li>
                <li <?php echo $this->stype == 22 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/task/completeuser">完成任务</a>
                </li>
                <li <?php echo $this->stype == 24 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/recommend/index">用户推荐管理</a>
                </li>
                <li <?php echo $this->stype == 25 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/recommend/reward">运单返利管理</a>
                </li>
            </ul>
        </div>     
    <?php } ?>

    <?php if ($this->type == "returngoods") { ?>
        <div class="mavh1">                    
            <h2>退换货管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="management">
                <h3><i class=""></i>退换货管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 0 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Forpayment; ?>">待付款
                        <em>(<?php echo $this->recount0 ? $this->recount0 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Payment; ?>">待受理
                        <em>(<?php echo $this->recount1 ? $this->recount1 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Accepted; ?>">待处理
                        <em>(<?php echo $this->recount2 ? $this->recount2 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Process; ?>">待发包
                        <em>(<?php echo $this->recount3 ? $this->recount3 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Send; ?>">待通知
                        <em>(<?php echo $this->recount4 ? $this->recount4 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Informed; ?>">对方待收件
                        <em>(<?php echo $this->recount5 ? $this->recount5 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Received; ?>/type/1">对方已收件
                        <em>(<?php echo $this->recount6 ? $this->recount6 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 9 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Refund; ?>">卖家已退款
                        <em>(<?php echo $this->recount9 ? $this->recount9 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 30 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/beyond/1">运送超期
                        <em>(<?php echo $this->recount30 ? $this->recount30 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 12 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Succeed; ?>">已完成</a>
                </li>
                <li <?php echo $this->stype == 17 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/problem/1">异常退换货
                        <em>(<?php echo $this->recount17 ? $this->recount17 : 0; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 18 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/problem/3">退换货丢包
                        <em>(<?php echo $this->recount18 ? $this->recount18 : 0; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 8 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/delete/1">回收站</a>
                </li>
                <li <?php echo $this->stype == 20 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/all/all">历史记录</a>
                </li>
            </ul>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="reback">
                <h3><i class=""></i>换货管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 19 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Received; ?>/type/2">对方待发件
                        <em>(<?php echo $this->recount19 ? $this->recount19 : 0; ?>)</em>
                    </a>
                </li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/returngoods/index/status/<?php echo Application_Model_ReturnGoods::STATUS_Resend; ?>/type/2">仓库待收件
                        <em>(<?php echo $this->recount10 ? $this->recount10 : 0; ?>)</em>
                    </a>
                </li>
            </ul>
        </div>
    <?php } ?>

    <?php if ($this->type == "Relevance") { ?>
        <div class="leftnav">
            <div class="tableft showUnfold" id="reback">
                <h3><i class=""></i>运单关联管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/remotefee/index">运单偏远费</a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/express/company">渠道商管理</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/express/index">前台渠道维护</a>
                </li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/express/channel">后台渠道维护</a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/express/price">快递价格维护</a>
                </li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/express/viplist">快递Vip价格维护</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    <?php if ($this->type == "financial") { ?>
        <div class="mavh1">                    
            <h2>手工财务日志</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="reback">
                <h3><i class=""></i>日志列表</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/financial/index/status/1">自动审核<em>(<?php echo $this->countfin1 ? $this->countfin1 : 0; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/financial/index/status/2">待审核<em>(<?php echo $this->countfin2 ? $this->countfin2 : 0; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/financial/index/status/3">已审核<em>(<?php echo $this->countfin3 ? $this->countfin3 : 0; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/financial/index/status/4">驳回<em>(<?php echo $this->countfin4 ? $this->countfin4 : 0; ?>)</em></a>
                </li>
                <li <?php echo $this->stype == 10 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/financial/index/status/10">关闭</a>
                </li>
                <li <?php echo $this->stype == 99 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/financial/index/">所有</a>
                </li>
            </ul>
        </div>
    <?php } ?>

    <?php if ($this->type == 'risk') { ?>
        <div class="mavh1">                    
            <h2>Paypal风控管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="member">
                <h3><i class=""></i>风控信息管理</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 16 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/risk">风控预警</a>
                </li>
                <li <?php echo $this->stype == 7 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/risk/status/history">风控操作记录</a>
                </li>
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/paypallist/status/<?php echo 'verified' ?>">paypal已认证</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/paypallist/status/<?php echo 'unverified'?>">paypal未认证</a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/paypallist/status/<?php echo Application_Model_PaypalAccount::Uuch_Status_Verified?>">悠奇已认证</a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/paypallist/status/<?php echo Application_Model_PaypalAccount::Uuch_Status_Default?>">悠奇未认证</a>
                </li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/paypallist/status/<?php echo Application_Model_PaypalAccount::Uuch_Status_Black?>">悠奇黑名单</a>
                </li>
                <li <?php echo $this->stype == 6 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/paypal/paypallist/status/<?php echo '6'?>">全部</a>
                </li>
            </ul>
        </div>
    <?php } ?>

    <?php if ($this->type == "autotask") { ?>
        <div class="mavh1">                    
            <h2>任务管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="reback">
                <h3><i class=""></i>任务列表</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/autotask/index">任务列表</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/autotask/joblog">任务日志列表</a>
                </li>
                <li <?php echo $this->stype == 4 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/packageno/index">扫描页</a>
                </li>
                <li <?php echo $this->stype == 5 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/packageno/relist">扫描清单列表</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    <?php if ($this->type == "todotask") { ?>
        <div class="mavh1">                    
            <h2>任务管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="reback">
                <h3><i class=""></i>任务列表</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/todotask/index">待办事项列表</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    
    <?php if ($this->type == "agent") { ?>
        <div class="mavh1">                    
            <h2>我的推荐管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="agent">
                <h3><i class="agent"></i>推荐客户信息</h3>
            </div>
            <ul class="showUl">
                <li <?php echo $this->stype == 1 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/agent/customer">推荐客户</a>
                </li>
                <li <?php echo $this->stype == 2 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/agent/waybill">运单统计</a>
                </li>
                <li <?php echo $this->stype == 3 ? 'class="lnavon"' : ""; ?>>
                    <a href="/admini/agent/commission">月度分成统计</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    
    
    <?php if($this->type == "cnship"): ?>
        <div class="mavh1">                    
            <h2>国内物流管理</h2><i></i>
        </div>
        <div class="leftnav">
            <div class="tableft showUnfold" id="reback">
                <h3><i class=""></i>国内物流</h3>
            </div>
            <ul class="showUl">
                <li class="lnavon">
                    <a href="/admini/cnship/index">国内物流列表</a>
                </li>
            </ul>
        </div>
    <?php endif; ?>
</table>
